<table style="width: 100%;" cellpadding="2" cellspacing="2">
	<tr>
		<td class="border2">
			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header">{language text="Mod_Video.my_fav_videos"}</td>
				</tr>
			</table>

{if count($aItems)}
<table style="width:100%;" cellpadding="8" cellspacing="0">
<tr>
{foreach from=$aItems item=aItem key=key name=aitems}
<td style="text-align:center; vertical-align;top;">
    <table style="margin-left:auto;margin-right:auto;vertical-align;top;">
    <tr>
    <td>
    <a href="{url link='public.videos' id=$aItem.vid_id foxseotitle=$aItem.vid_title}">{$aItem.vid_title|truncate:'20'|clean}</a>
	<div class="wrap1">
		<div class="wrap2">
        	<div class="wrap3">
            	<div class="wrap4">
                	<div class="wrap5">
                		<a href="{url link='public.videos' id=$aItem.vid_id foxseotitle=$aItem.vid_title}">
						{img max_width="120" src="`$sGImageUrl``$aItem.vid_id`.jpg" src_def="design/pic/noimage_120.jpg" alt="" id="mainimage"}
						</a>
					 </div>
					</div>
				</div>
			</div>
		</div>
	</td>
	</tr>
	</table>
	{if getUser('id') == $aItem.user_id}
	<a href="{url link='current' deletevideo=$aItem.id}" onclick="return sure('');">{language text='Mod_Video.delete'}</a>
	{/if}
</td>
{if $key is odd}
</tr>
<tr>
{if $smarty.foreach.aitems.last == true}
<td></td>
{/if}
{/if}
{/foreach}
</tr>
</table>
{else}
	<div class="message_info">{language text='Mod_Video.no_fav_videos'}</div>
{/if}
		</td>
	</tr>
</table>
